package al.work.httplisten.holder;

import al.work.common.util.ContextHolder;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpsExchange;

/**
 * @author JiuZh
 */
public class RequestContextHolder {

    private RequestContextHolder() {}

    private final static String HTTP_EXCHANGE = "HTTP_EXCHANGE";

    public static HttpExchange getHttpExchange() { return (HttpExchange)ContextHolder.get(HTTP_EXCHANGE); }
    public static void setHttpExchange(HttpExchange exchange) { ContextHolder.put(HTTP_EXCHANGE, exchange); }
}
